<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>欢迎</title>
</head>
<body>
    <h1>登录记录</h1>
    <a href="/logout">退出</a>
    <table cellspacing="0" border="1">
        <tr>
            <th>编号</th>
            <th>用户</th>
            <th>登录时间</th>
            <th>登录ip</th>
        </tr>
        <tr th:each="u:${list}">
            <td th:text="${u.loginId}"></td>
            <td th:text="${u.user.userName}"></td>
            <td th:text="${#dates.format(u.loginTime,'yyyy-MM-dd HH:mm:ss')}"></td>
            <td th:text="${u.loginIp}"></td>
        </tr>
    </table>
</body>
</html>